<!DOCTYPE html>
<html>
    <head>
        <title>一个简单的JavaScript例程</title>
    </head>
    <body>
        <script language="javascript" type="text/javascript">
            function addAll(a,b,c){
                return a+b+c;
            }
            var total = addAll(30,40,50);
            var str = "Ran 5 hours,<br> finally finished the ";
            document.write("<html><B> "+ str + total + " km! </B></html>");
        </script>
    </body>
</html>
